package com.eazy.lksy.reptile;

import java.io.IOException;
import java.net.MalformedURLException;
import java.util.EnumMap;
import java.util.EnumSet;

import org.xml.sax.SAXException;


public class TestClick {

	public static void main(String[] args) throws MalformedURLException, IOException, SAXException {
		EnumMap<CityEnum, String> enumMap = new EnumMap<CityEnum,String>(CityEnum.class);
		enumMap.put(CityEnum.BEIJING, "北京");
		enumMap.put(CityEnum.GUANGZHOU, "广州");
		enumMap.put(CityEnum.HANGZHOU, "杭州");
		enumMap.put(CityEnum.SHANGHAI, "上海");
		enumMap.put(CityEnum.SHENZHENG, "深圳");
		
		for(CityEnum cityEnum : CityEnum.values()) {
			System.out.println(cityEnum.name() + enumMap.get(cityEnum));
		}
		
		EnumSet<CityEnum> enumSet = EnumSet.allOf(CityEnum.class);
		for(CityEnum cityElements : enumSet) {
			
		}
	}
}
